home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000097_repost@nospam.…nate2create.com_Thu May 30 13:57:41 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  73 lines

  1. Article: 13391 of comp.protocols.kermit.misc
  2. Newsgroups: comp.protocols.kermit.misc
  3. Subject: getting error: A specified file does not support the ioctl system call
  4. From: repost@nospam.innate2create.com
  5. Date: Wed, 29 May 2002 01:52:37 GMT
  6. X-Newsreader: News Rover 7.4.3 (http://www.NewsRover.com)
  7. NNTP-Posting-Host: 127.0.0.1
  8. Message-ID: <3cf432a3_5@corp-goliath.newsgroups.com>
  9. Lines: 55
  10. X-Authenticated-User: 1004109813
  11. X-Comments: This message was posted through Newsfeeds.com - http://www.newsfeeds.com
  12. X-Comments2: IMPORTANT: newsfeeds.com does not condone, nor support,  spam or any illegal or copyrighted postings.
  13. X-Report: Please report abuse to <abuse@Newsfeeds.com>
  14. Organization: Posted Via Newsfeeds.com = SPEED+RETENTION+COMPLETION = http://www.newsfeeds.com
  15. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!corp-goliath.newsgroups.com!not-for-mail
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13391
  17.  
  18. Been trying to convert a Kermit job to cron but get the following error
  19. output to stderr:
  20.  
  21. tcgetattr: A specified file does not support the ioctl system call
  22.  
  23. The kermit script is simple and works just fine manually, ie with a terminal
  24. session and downloading a file via xmodem from the remote host.  However, in
  25. making it a cron job, it fails at the very moment the xmodem file transfer
  26. begins with a 0 byte file rcv'd.  Dialing the modem works fine, getting
  27. carrier works fine and dialog to login with username and password works fine
  28. in cron mode, however, manual mode is successful in receiving the file via
  29. xmodem and cron is not.
  30.  
  31. Running kermit version 8 under AIX version 4.3.3.  I realize that running
  32. under cron is slightly different that running a terminal session, ie stdin
  33. and stdout, but not sure if I'm missing a switch or parameter when in comes
  34. to the xmodem file transfer.  Any comments or suggestions would be
  35. appreciated...
  36.  
  37. Snipet of the script is as follows:
  38.  
  39. define DIALGE {
  40.    if not defined MODEM end 1 {\%0: Modem type not defined.}
  41.    set modem type \m(MODEM)
  42.    if fail end 1 {\%0: \m(MODEM): Unsupported modem type.}
  43.    if not defined PORT end 1 {\%0: Communication port not defined.}
  44.    set port \m(PORT)
  45.    if fail end 1 {\%0: SET PORT \m(PORT) failed.}
  46.    if defined FLOW set flow \m(FLOW)
  47.    if fail end 1 {\%0: SET FLOW \m(FLOW) failed.}
  48.    If defined SPEED set speed \m(SPEED)
  49.    if fail end 1 {\%0: SET SPEED \m(SPEED) failed.}
  50.    set protocol xmodem {} {} {} {} {} {xmodem -r %s}
  51.    set file type text
  52.    dial 91336...
  53.    input 5 Enter Client I.D. Number
  54.    OUTPUT 1...\{13}
  55.    input 5 Enter Password
  56.    OUTPUT C...\{13}
  57.    input 5 >
  58.    OUTPUT 2\{13}
  59.    input 5 Enter file name to download
  60.    OUTPUT pcpy1.dat\{13}
  61.    input 5 Set up to receive the file.
  62.    #if failure end 1 LEAVE
  63.    pause 2
  64.    receive pcpy1.dat
  65.    OUTPUT 4\{13}
  66. end \v(status)
  67. }
  68.  
  69.  
  70. -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
  71.    http://www.newsfeed.com       The #1 Newsgroup Service in the World!
  72. -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
  73.